package com.tran.tr.order.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author ssh
 * @since 2021-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tr_order")
@ApiModel(value="TrOrder对象", description="订单表")
public class TrOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
      private String id;

    @ApiModelProperty(value = "订单号")
    private String ordernum;

    @ApiModelProperty(value = "订单价格")
    private BigDecimal orderprice;

    @ApiModelProperty(value = "1: 未支付；2：已支付；3：已退款；4：已失效; 5：已取消")
    private String orderstatus;

    @ApiModelProperty(value = "商品ID")
    private String goodId;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal goodprice;

    @ApiModelProperty(value = "商品数量")
    private Integer goodnum;

    @ApiModelProperty(value = "优惠卷ID")
    private String couponId;

    @ApiModelProperty(value = "优惠卷金额")
    private Integer couponmoney;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
